package code.model

import scala.xml.NodeSeq

import scala.xml.NodeSeq
import net.liftweb._
import http._
import util._
import Helpers._
import code.lib.{Tablable, StringContext}

case class Member(name:String, password:String)

object Member {
  implicit object MemberIsTablable extends Tablable[Member] {
    override def columns  = Seq(i"table.column.member.name", i"table.column.member.password")
    override val caption = i"table.caption.member"
    override def asRow(m: Member) = Seq(m.name , m.password).map("td *" #> _)
  }

}